<?php 
header("Content-type:text/html;charset=utf-8");
require_once('./system/dbConnect.php');
connect();
$id = $_GET['id'];
//获取视频信息
$sql_video="select * from videos where vid={$id} ";
$video_list=fetch_array($sql_video);


$vid_list=array();
foreach($video_list as $one){
    $vlist=array();
    $vlist['vid']=$one['vid'];
    $vlist['videoname']=$one['videoname'];
    $vlist['pic']=$one['pic'];
    $vlist['intro']=$one['intro'];
    $vlist['uploaddate']=$one['uploaddate'];
    $vlist['uploadadmin']=$one['uploadadmin'];
    $vlist['hittimes']=$one['hittimes'];
    $vlist['downtimes']=$one['downtimes'];
    $vlist['address']=$one['address'];
    $vid_list=$vlist;
}
 ?>


<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Off Canvas Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="assets/css/offcanvas.css" rel="stylesheet">
    <link href="assets/css/style.css" rel="stylesheet">
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]>
    <script src="assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<?php require_once('header.php'); ?>
<!-- /.navbar -->


<div class="container">

    <div class="row row-offcanvas row-offcanvas-right">

        <div class="col-xs-12 col-sm-12">


            <div class="row box">
                <div class="col-lg-12 text-center">
                    <div id="carousel-example-generic" class="carousel slide">
                        <!-- Indicators -->
                        <ol class="carousel-indicators hidden-xs">
                            <li data-target="#carousel-example-generic" data-slide-to="0" class=""></li>
                            <li data-target="#carousel-example-generic" data-slide-to="1" class=""></li>
                            <li data-target="#carousel-example-generic" data-slide-to="2" class="active"></li>
                        </ol>

                        <!-- Wrapper for slides -->
                        <div class="carousel-inner">
                        <div class="item">
                            <img class="img-responsive img-full" src="images/<?php echo $vid_list['pic']; ?>" alt="">
                        </div>
                        <div class="item">
                            <img class="img-responsive img-full" src="assets/images/desli-2.jpg" alt="">
                        </div> 
                        <div class="item active">
                            <img class="img-responsive img-full" src="assets/images/slide-3.jpg" alt="">
                        </div>

                           
                           
                        </div>

                        <!-- Controls -->
                        <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
                            <span class="icon-prev"></span>
                        </a>
                        <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
                            <span class="icon-next"></span>
                        </a>
                    </div>

                    <h1 class="brand-name"><?php echo $vid_list['videoname']; ?></h1>

                </div>


            </div>
            <!--/row-->
            <div class="row box">

                <div class="col-lg-12">
                    <h2 class="intro-text text-center">简介 </h2>
                    <ol><li><?php echo '内容简介：'.$vid_list['intro']; ?></li>
                        <li><?php echo '下载地址：'.$vid_list['address']; ?></li>
                        <li><?php echo '上传用户：'.$vid_list['uploadadmin']; ?></li>
                        <li><?php echo '点击率：'.$vid_list['hittimes']; ?></li>
                         <li><?php echo '下载次数：'.$vid_list['downtimes']; ?></li>

                    </ol>
                           
                        
                   
                        
                    

                </div>
            </div>
        </div>
        <!--/.col-xs-12.col-sm-12-->

       
    </div>
    <!--/row-->
    
</div>
<!--/.container-->
<hr>

    <footer>
        <p>&copy; Company 2014</p>
    </footer>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="assets/js/ie10-viewport-bug-workaround.js"></script>

<script src="offcanvas.js"></script>
<!-- Script to Activate the Carousel -->
<script>
    $('.carousel').carousel({
        interval: 3000 //changes the speed
    })
</script>
</body>
</html>
